"""Ehotel URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))
"""
from django.conf.urls import url
from django.contrib import admin

from users import views as users_views
from operation import views as operation_views
from room import views as room_views

urlpatterns = [
    url(r'^$', users_views.index, name='index'),
    url(r'^login', users_views.user_login, name='login'),
    url(r'^logout', users_views.user_logout, name='logout'),
    url(r'^about', users_views.about, name='about'),

    #operation
    url(r'^enter$', operation_views.chick_in_hotel),
    url(r'^order_money$', room_views.order_money),
    url(r'^reservation$', operation_views.reservation),
    url(r'check_out', operation_views.check_out),
    url(r'vacancy', operation_views.vacancy),

    #search
    url(r'^enter_info', operation_views.enter_info),
    url(r'^reservation_info', operation_views.reservation_info),
    url(r'^cancel_reservation', operation_views.cancel_reservation),
    url(r'^order', operation_views.get_order),
    url(r'^statement', operation_views.statement),
    url(r'^recently', operation_views.seven_trend),

    
    #room
    url(r'^room_info$', room_views.room_info),
    url(r'room_info/edit', room_views.room_info_edit),
    url(r'change_roomstatus$', room_views.change_roomstatus),
    url(r'^room_type$', room_views.room_type),
    # url(r'room_type/edit', room_views.change_price),
    url(r'get_info', room_views.ajax_room),
    url(r'change_price$', room_views.change_price),
    url(r'^room_hot$', room_views.room_hot),
    url(r'^delete_hot', room_views.delete_hot),


    url(r'^staff$', users_views.staff_info),
    url(r'^staff/edit', users_views.staff_edit),
    url(r'^staff/add_staff', users_views.add_staff),
    url(r'^staff/delete', users_views.staff_delete),
    url(r'^client$', users_views.client_info),
    url(r'^client/edit', users_views.client_edit),
    url(r'^change_pwd$', users_views.change_pwd),

    url(r'^get_message', operation_views.get_message),
    url(r'^message', operation_views.message),

    # url(r'^test', operation_views.decision_making),
]
